package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "mall_order_item_detail")
public class MallOrderItemDetail {
    @Id
    @Column(name = "order_item_detail_id")
    private Integer orderItemDetailId;

    @Column(name = "grade")
    private String grade;

    @Column(name = "twisting")
    private String twisting;

    @Column(name = "color")
    private String color;

    @Column(name = "machine_no")
    private String machineNo;

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getTwisting() {
        return twisting;
    }

    public void setTwisting(String twisting) {
        this.twisting = twisting;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getMachineNo() {
        return machineNo;
    }

    public void setMachineNo(String machineNo) {
        this.machineNo = machineNo;
    }

    @Column(name = "order_item_id")
    private Integer orderItemId;

    @Column(name = "material_code")
    private String materialCode;

    private BigDecimal quantity;

    @Column(name = "current_unit_price")
    private BigDecimal currentUnitPrice;

    @Column(name = "total_price")
    private BigDecimal totalPrice;

    @Column(name = "inventory_organization")
    private String inventoryOrganization;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "residual_quantity")
    private BigDecimal residualQuantity;

    /**
     * 税率 默认16.00
     */
    private String rate;

    @Column(name = "ex_factory_price")
    private BigDecimal exFactoryPrice;

    @Column(name = "insert_status")
    private Integer insertStatus;

    /**
     * 01  义乌华鼎锦纶股份有限公司、 0101  宁波圣鼎贸易有限公司
     */
    @Column(name = "sales_organization")
    private String salesOrganization;

    /**
     * 01 一类销售、02 二类销售、03 三类销售、 04普通
     */
    @Column(name = "sales_type")
    private String salesType;

    /**
     * 01 公司支付、 02 客户支付
     */
    @Column(name = "freight_payment_type")
    private String freightPaymentType;

    /**
     * 01 3个月承兑、02 6个月承兑、03 电汇、09 其它
     */
    @Column(name = "payment_methods")
    private String paymentMethods;

    /**
     * 订单分组
     */
    @Column(name = "group_no")
    private Long groupNo;

    @Column(name = "check_quantity")
    private BigDecimal checkQuantity;

    public BigDecimal getCheckQuantity() {
        return checkQuantity;
    }

    public void setCheckQuantity(BigDecimal checkQuantity) {
        this.checkQuantity = checkQuantity;
    }

    /**
     * @return order_item_detail_id
     */
    public Integer getOrderItemDetailId() {
        return orderItemDetailId;
    }

    /**
     * @param orderItemDetailId
     */
    public void setOrderItemDetailId(Integer orderItemDetailId) {
        this.orderItemDetailId = orderItemDetailId;
    }

    /**
     * @return order_item_id
     */
    public Integer getOrderItemId() {
        return orderItemId;
    }

    /**
     * @param orderItemId
     */
    public void setOrderItemId(Integer orderItemId) {
        this.orderItemId = orderItemId;
    }

    /**
     * @return material_code
     */
    public String getMaterialCode() {
        return materialCode;
    }

    /**
     * @param materialCode
     */
    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    /**
     * @return quantity
     */
    public BigDecimal getQuantity() {
        return quantity;
    }

    /**
     * @param quantity
     */
    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    /**
     * @return current_unit_price
     */
    public BigDecimal getCurrentUnitPrice() {
        return currentUnitPrice;
    }

    /**
     * @param currentUnitPrice
     */
    public void setCurrentUnitPrice(BigDecimal currentUnitPrice) {
        this.currentUnitPrice = currentUnitPrice;
    }

    /**
     * @return total_price
     */
    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    /**
     * @param totalPrice
     */
    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    /**
     * @return inventory_organization
     */
    public String getInventoryOrganization() {
        return inventoryOrganization;
    }

    /**
     * @param inventoryOrganization
     */
    public void setInventoryOrganization(String inventoryOrganization) {
        this.inventoryOrganization = inventoryOrganization;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return residual_quantity
     */
    public BigDecimal getResidualQuantity() {
        return residualQuantity;
    }

    /**
     * @param residualQuantity
     */
    public void setResidualQuantity(BigDecimal residualQuantity) {
        this.residualQuantity = residualQuantity;
    }

    /**
     * 获取税率 默认16.00
     *
     * @return rate - 税率 默认16.00
     */
    public String getRate() {
        return rate;
    }

    /**
     * 设置税率 默认16.00
     *
     * @param rate 税率 默认16.00
     */
    public void setRate(String rate) {
        this.rate = rate;
    }

    /**
     * @return ex_factory_price
     */
    public BigDecimal getExFactoryPrice() {
        return exFactoryPrice;
    }

    /**
     * @param exFactoryPrice
     */
    public void setExFactoryPrice(BigDecimal exFactoryPrice) {
        this.exFactoryPrice = exFactoryPrice;
    }

    /**
     * @return insert_status
     */
    public Integer getInsertStatus() {
        return insertStatus;
    }

    /**
     * @param insertStatus
     */
    public void setInsertStatus(Integer insertStatus) {
        this.insertStatus = insertStatus;
    }

    /**
     * 获取01  义乌华鼎锦纶股份有限公司、 0101  宁波圣鼎贸易有限公司
     *
     * @return sales_organization - 01  义乌华鼎锦纶股份有限公司、 0101  宁波圣鼎贸易有限公司
     */
    public String getSalesOrganization() {
        return salesOrganization;
    }

    /**
     * 设置01  义乌华鼎锦纶股份有限公司、 0101  宁波圣鼎贸易有限公司
     *
     * @param salesOrganization 01  义乌华鼎锦纶股份有限公司、 0101  宁波圣鼎贸易有限公司
     */
    public void setSalesOrganization(String salesOrganization) {
        this.salesOrganization = salesOrganization;
    }

    /**
     * 获取01 一类销售、02 二类销售、03 三类销售、 04普通
     *
     * @return sales_type - 01 一类销售、02 二类销售、03 三类销售、 04普通
     */
    public String getSalesType() {
        return salesType;
    }

    /**
     * 设置01 一类销售、02 二类销售、03 三类销售、 04普通
     *
     * @param salesType 01 一类销售、02 二类销售、03 三类销售、 04普通
     */
    public void setSalesType(String salesType) {
        this.salesType = salesType;
    }

    /**
     * 获取01 公司支付、 02 客户支付
     *
     * @return freight_payment_type - 01 公司支付、 02 客户支付
     */
    public String getFreightPaymentType() {
        return freightPaymentType;
    }

    /**
     * 设置01 公司支付、 02 客户支付
     *
     * @param freightPaymentType 01 公司支付、 02 客户支付
     */
    public void setFreightPaymentType(String freightPaymentType) {
        this.freightPaymentType = freightPaymentType;
    }

    /**
     * 获取01 3个月承兑、02 6个月承兑、03 电汇、09 其它
     *
     * @return payment_methods - 01 3个月承兑、02 6个月承兑、03 电汇、09 其它
     */
    public String getPaymentMethods() {
        return paymentMethods;
    }

    /**
     * 设置01 3个月承兑、02 6个月承兑、03 电汇、09 其它
     *
     * @param paymentMethods 01 3个月承兑、02 6个月承兑、03 电汇、09 其它
     */
    public void setPaymentMethods(String paymentMethods) {
        this.paymentMethods = paymentMethods;
    }

    public Long getGroupNo() {
        return groupNo;
    }

    public void setGroupNo(Long groupNo) {
        this.groupNo = groupNo;
    }
}